package com.hava.demo.springmvc.onlyone.repository;

import com.hava.demo.springmvc.onlyone.entity.OnlyOne;
import com.hava.jpa.AutoRepository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

/**
 * Created by zhanpeng on 15-2-9.
 */
@Repository
//public interface OnlyOneRepository extends AutoRepository<OnlyOne, Long> {
//}
public interface OnlyOneRepository extends PagingAndSortingRepository<OnlyOne,Long>,JpaSpecificationExecutor<OnlyOne>{
        }